from django.urls import path
from . import views

app_name = 'auth'

urlpatterns = [
    path('', views.index, name='index'),
    path('login/', views.login, name='login'),
    path('logout', views.logout, name='logout'),
    path('users/', views.user_list, name='user_list'),
    path('users/create/', views.user_create, name='user_create'),
    path('users/edit/', views.user_edit, name='user_edit'),
    path('users/api/', views.UserView.as_view(), name='user_api'),
    path('menu/', views.menu_list, name='menu'),
    path('permission/', views.permission_list, name='permission'),
    path('permission/create/', views.permission_create, name='permission_create'),
    path('permission/edit/', views.permission_edit, name='permission_edit'),
    path('permission/api/', views.PermissionView.as_view(), name='permission_api'),
    path('role/', views.role_list, name='role'),
    path('role/create/', views.role_create, name='role_create'),
    path('role/edit/', views.role_edit, name='role_edit'),
    path('role/api/', views.RoleView.as_view(), name='role_api'),
]